home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
qbtools1.arc
/
AEBITLFT.BAS
< prev
next >
Wrap
BASIC Source File
|
1987-01-11
|
768b
|
29 lines
rem $linesize:132
rem $title:'Application Engineer Standard Routines'
rem $subtitle:'Move to the first key in the index'
'
' bit.left moves the index pointer so that it references the smallest
' key in the tree. this function is to be used to get a listing of the
' tree in sequence. the 'bit.right' routine will position the pointer
' at the other end of the tree for reverse listings.
'
' Include the COMMON values
rem $include:'AESHARED.BAS'
sub bit.left(fl%,ky$,mrec%,success%) static
rec%=1
lfagain:
get #fl%,rec%
success%=cvi(xk$(fl%,2))
if success%=0 then
goto lffin
end if
rec%=success%
goto lfagain
lffin:
ky$=xk$(fl%,1)
success%=rec%
mrec%=cvi(xk$(fl%,5))
end sub